package net.cyue.nest.nestjava.common.interfaces.http;

import net.cyue.nest.nestjava.common.data.http.HTTPRequestBody;
import net.cyue.nest.nestjava.common.data.http.HTTPRequestParams;
import net.cyue.nest.nestjava.common.enums.RequestMethod;

public interface IHTTPRequest {
  String scheme();
  RequestMethod method();
  String uri();
  String path();
  HTTPRequestParams params();
  HTTPRequestBody body();

  String getHeader(String name);
  default String getParam(String name) {
    return this.getParameter(name);
  }
  String getParameter(String name);
}
